<?php
namespace Home\Controller;
use Think\Controller;


class HeadlineController extends Controller {
    //卖家首页的图片来源接口
     function  headimage(){
       
       $head=M("Headline");
       $data=$head->field("t_headline.Headline_images")->select();
       if ($data) {
          $this->ajaxReturn(array(
                "code"=>200,
                "message"=>"查询成功！",
                "data"=>$data
    			),"JSON");
    	}
    	else{
    		$this->ajaxReturn(array(
                "code"=>500,
                "message"=>"没有相应图片！"
    			),"JSON");
       }

     }


    //卖家首页的生意头条来源接口
      function  headcontent(){
       
       $head=M("Headline");
       $data=$head->field("t_headline.Headline_content")->select();
       if ($data) {
          $this->ajaxReturn(array(
                "code"=>200,
                "message"=>"查询成功！",
                "data"=>$data
    			),"JSON");
    	}
    	else{
    		$this->ajaxReturn(array(
                "code"=>500,
                "message"=>"没有相应内容！"
    			),"JSON");
       }

     }







}